// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗  
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝  
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// -----------------------------------------------
//  
// This file is automatically generated 
// Please do not edit these files manually
// Run the following in the root of the repos:
//
// 		*NIX 		:	./build.sh codegen
// 		Windows 	:	build.bat codegen
//
// -----------------------------------------------
// ReSharper disable RedundantUsingDirective
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using Elastic.Transport;

// ReSharper disable once CheckNamespace
namespace Elasticsearch.Net.Specification.EqlApi
{
	///<summary>Request options for Delete <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html</para></summary>
	public class DeleteRequestParameters : RequestParameters<DeleteRequestParameters>
	{
	}

	///<summary>Request options for Get <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html</para></summary>
	public class GetRequestParameters : RequestParameters<GetRequestParameters>
	{
		///<summary>Update the time interval in which the results (partial or final) for this search will be available</summary>
		public TimeSpan KeepAlive
		{
			get => Q<TimeSpan>("keep_alive");
			set => Q("keep_alive", value);
		}

		///<summary>Specify the time that the request should block waiting for the final response</summary>
		public TimeSpan WaitForCompletionTimeout
		{
			get => Q<TimeSpan>("wait_for_completion_timeout");
			set => Q("wait_for_completion_timeout", value);
		}
	}

	///<summary>Request options for Search <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html</para></summary>
	public class SearchRequestParameters : RequestParameters<SearchRequestParameters>
	{
		///<summary>Update the time interval in which the results (partial or final) for this search will be available</summary>
		public TimeSpan KeepAlive
		{
			get => Q<TimeSpan>("keep_alive");
			set => Q("keep_alive", value);
		}

		///<summary>
		/// Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default:
		/// false)
		///</summary>
		public bool? KeepOnCompletion
		{
			get => Q<bool? >("keep_on_completion");
			set => Q("keep_on_completion", value);
		}

		///<summary>Specify the time that the request should block waiting for the final response</summary>
		public TimeSpan WaitForCompletionTimeout
		{
			get => Q<TimeSpan>("wait_for_completion_timeout");
			set => Q("wait_for_completion_timeout", value);
		}
	}
}